package com.liu.activiti.pojo.activiti;

import java.util.ArrayList;
import java.util.List;

/**
 * @author gzj
 * @date 2024/2/22 16:23
 * @description
 */
public class TreeNode {
    public String id; // 节点ID
    public CustomProcessNode data; // 节点数据
    public List<TreeNode> children; // 子节点列表
    public TreeNode(String id, CustomProcessNode data) {
      this.id = id;
      this.data = data;
      this.children = new ArrayList<>();
    }
    // 添加子节点
    public void addChild(TreeNode child) {
      this.children.add(child);
    }
}
